#ifndef MIDI_PLAYER_WIDGET_H
#define MIDI_PLAYER_WIDGET_H

#include <QWidget>

class QPushButton;

class MidiPlayer;

/*!
 * Widget pour l'écoute du fichier MIDI
 */
class MidiPlayerWidget: public QWidget {
  Q_OBJECT;

  public:
    MidiPlayerWidget(QWidget *parent = 0);

  private:
    QPushButton *listenButton;
    QPushButton *stopButton;

    MidiPlayer *midiPlayer;

  public slots:
    void notReady();
    void ready();
    void stop();

  private slots:
    void play();

  signals:
    void playing();
    void stopped();
};

#endif
